<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<MRGSP.SurveyMaster.Core.Model.IPageable<MRGSP.SurveyMaster.Core.Model.SurveySession>>"
    MasterPageFile="~/Views/Shared/Site.Master" %>
<%@ Import Namespace="MRGSP.SurveyMaster.WebUI.Helpers" %>
<asp:Content runat="server" ID="Content" ContentPlaceHolderID="TitleContent">
</asp:Content>
<asp:Content runat="server" ID="Content1" ContentPlaceHolderID="MainContent">
<% if(Model.PageCount.Equals(0)) {%>
La moment nu sunt chestionare disponibile pentru dvs.
<%}%>

    <div class="lgrid">
        <%foreach (var item in Model.Page)
          {%>
        <div class="row">
            <div class="fl cell">
                <%=item.Name %>
            </div>
            <div class="fr">
                
                    <%if (item.Status.Equals("new"))
                      {%>
                      <div class="fr">
                    <form action="<%=Url.Action("Start") %>">
                    <input type="hidden" value="<%=item.SurveyId %>" name="SurveyId" />
                    <input type="submit" value="start" />
                    </form>
                    </div>                
                    <%
                        } else {%>
                        
                        <div class="fr">
                    <form action="<%=Url.Action("Review") %>">
                    <input type="hidden" value="<%=item.Id %>" name="Id" />
                    <input type="submit" value="review" />
                    </form>
                    </div>
                    <div class="fr">
                    <form method="post" action="<%=Url.Action("Done") %>">
                    <input type="hidden" value="<%=item.Id %>" name="Id" />
                    <input type="submit" value="done" />                    
                    </form>
                    </div>
                        <%}%>                   
                
            </div>
        </div>
        <%
            }%>
    </div>
    <br class="cbt" />
    <%=Html.Pagination() %>    
</asp:Content>
